import type {Pagination} from "src/types/pagination";

// 转载状态
export const OriginState = {
  Original: 0, // 原创
  Reprint: 1, // 转载
  Hybrid: 2 // 混合
};

// 排序状态
export const SortType = {
  Oldest: 1, // 时间升序
  Newest: 2, // 时间降序
  Hot: 3 // 热序
};

///评论所属模块
export const CommentModule = {
  blog: "blog",
  talk: "talk",
  board: "board"
};

//分页
export const PaginationConst: Pagination = {

  page: 1,
  size: 9,
  pageCount: 0,
  total:0
};

//查询类型
export const QueryType = {
  None: 1,
  Keyword: 2,
  Category: 3,
  Tag: 4
};

//查询范围
export const QueryScope = {
  All: 1,
  Title: 2,
  Content: 3
};

export default {
  OriginState,
  SortType,
  CommentModule,
  PaginationConst,
  QueryType,
  QueryScope
};
